package com.lx.javasunmmrize.proxy.cglibProxy;

import com.lx.javasunmmrize.proxy.dynamicProxy.TeacherDao;

/**
 * @Description TODO
 * @Author lx
 * @Date 2021/2/28 20:36
 **/
public class Client {
    public static void main(String[] args) {
        TeacherDao teacherDao = new TeacherDao();
        TeacherDao proxyInstance = (TeacherDao) new CglibProxy(teacherDao).getProxyInstance();
        proxyInstance.teach();
    }
}
